fixes #126;

also fixes issue introduced earlier, allowing some commands to be empty