exit 1 on bad params