add config parser and cover it by unit tests