Add NGW config utillity, fix errors