added clear and clear async to repository