[enh] implement ffdn api