generalize network modules