added log manager and tests