don't need the environment check for api endpoint anymore