ensure we check for err as well as status