added try/except for the first time run