set structure & wrap classes in modules