do not pass schema to command, but validation function