added try/excepts