fixing a lot of nginx craziness