changing device check during setup
using fileutils to delete temp dir