added logging to determine behaviour