addes some stuff to do cleanup