added flush on new entry