added logger, ioc, saving to plain text file