various fixes
added sourcemap flag