extracting modules into gem