add basic working functionality for sourcemaps