changed how logging and production env is dealt with.
added dependency on urls