support add component
delete useless code