added resource files and path modifications to the code