add main handle to handle all apis