improve file module style, work in progress