setup errbag