cleanup shared wrapping