small code/config changes for running in production