minor changes to thread and to queue reads