use cmd_sfunc_ftype and cmd_cfunc_ftype more