add try resources