make uwsgi working with old startup code. New startup code refactor