change dir check to blockdev