extend api, add logs