added check on production environment