loader cleanup