added try support