Changed to recognize local vs production server code