Debugged for production + http proxy