added basic function to work with components.