add error checking for command prefix