now sleep option accepts an Integer, refactorings
bumped version