a little clean up
support ref bean
support parent bean