add enter/exit type logging