write back from device and read from app