commit better api