fixing up some sm bugs
build
source map for lib