updated
fixed flags