special handling of writing to devices