added autoconfig, work in progress
now with working settings page