incorporate feedback, and update library version to 0.3.8