both device and file