use buffer_with_file from vial.utils