added log4j, part of tui and test