flush on build