implemented basic config parser, added logging