config re-worked

fixes #2