update to work with nginx