add sourcemap writing