tree + scan bean