added some panic on errors