refactored code to use a class filestore linked file