added try-catch, realtve paths, objects and more