fixed #35 and bumped version to 1.0.6