adding another condition to check env for admin as well based off name