set up bar.init()