easier customization of file stream