- added config class and implemented it