removing print_r from api client