add sourcemaps and update to latest module handling