re-added log4j to fix endtoend test
fixed internals context init