added switch for dev/prod mode of server