detect and dismount