improve file module