added try/catch to not crash if file doesnt exist