extend logging
add test for or