plugin: fixed args and post data.
configuring api debug via environment.