return a file object instead of only the path in case the strip option is used