setup better api