pre delivery cleanup