remove dependency on stringr and fix some packaging issues