added in delayed flushing/callbacks