removed root option in favour of file filter function