configuration handling

WIP