better nginx handling