few bug fixes. added checking before sending component.