add v2 api support

Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>