avoided the whole base64 encoding of commands mess
can handle complex commands better now