add getting bean with constructors. huan