cleanup prior to release