added many_to_many association for networks