something is fishy with commands array JSON parsing