small changes to work with new nginx/node env