Configurable autoconnect

closes #42