adding catch server-error