break the unmount task into a separate file