reworked settings and logging