fixed BarAPI regestration