move api url into config var