some fixes
fix template
add uwsgi support