changed settings to work on both development and production