add return when api url is not set in time script