added switch for dev/prod modes to assist development