fixed a few bugs and bumped the version