wip

unit test almost passed, we need to retrieve the filename from input to
rename output