update file handling
remove common utilities from the global scope