fixed print bug
added config class