refactor code
making retry process interruptable
version bump