add network functions for easier debug