- readded repository cleanup code