working ot make nginx generation reliable