fixed a few mistakes, more work on nginx