added handling for trait within a trait behavior