better erroring from commands