added filesystem as an arg