revised to just pass the input path back if the enableVirtual flag is set to true