add debug option to api commands