removed build_query and create_nonce from KAPI class definition