logging refactored
version