fix for compile, network connect logic