fix prepare interfaces