removed delays and replaced with serial flushes