added log4j config option and systemd support