better errors
update example