change to work in uwgsi and nginx