parent flag and minor fixes
first attempt on component