added nicer errors