numerous cleanup operations