better api sketch