added getEnvironment function to specify whether on production, stage, or no environment set