added flag to network, final commit