feat: extract autodetection to own interface

bump version to 2.0.0