added some primitive error behavior