readying the new logging function