added better nginx support