misc work on nginx script