flags parsing, updated config