fixes for --sourcemap