make bean can suport constructor