move modules to library