add a bit of workarounds for sourcemaps to work