make request() public so I can send a custom $cmd