implemented major part of config parser