odnoklassniki middleware implementation