small work on the api framework