added env switching for staging & production