adding behavior
fixed logging