refactor part of bin to a lib
refactored and improved the config defaults / options / deepmerge
an option to not produce side-effects
writing dots disabled by default
track how many retries were made