added auto cleanup
new version for npm