working on exposing barrier api