adding setFileRoot() method