handle ajax errors correctly
release 0.0.7