added try catch in discover inputs