various nginx improvemets