fixed noisy errors and ajax callback