adding debug output to gateway
defaulting nils to zero
defaulting nils to zero
setting up config files for deploy to standard linux server