added try exception to config