some cleanup on ngix interface