fix error (command undefined)
speedup ?!:
don't create list each time a command is received