try to catch params errors