fix - if we have a prefix defined then we should only take a file if it's matching the prefix