handle track reading and writing in background