add more checking for gateway in configib postscript