more changes to uwsgi error checking