debugging issue solved, better nonce solved, merged api with base_api