onlyif seems not to work with files