made changes to harverster and flusher threads