added clear method to component loader