added support for running with nginx