bug fixes and api updates for 0.1.1