exported fileListener to a class, fixed context file by fileService