adding log4j logging and custom shell.