remove unused import, remove monitor when reading and start monitor when done reading to avoid data disorder in different threads