- now using io to write device updates to file