added new ffn api