cleanup also in temp mode