check return code of append_bind?