adds filestream functions