changed how commands are sent to api to avoid htaccess problem