more friendly api

Oh vitamio...
Merge pull request #189 from master255/patch-2

more friendly api