fixes for issues found while debugging copy of network