fixed some issues with file name processing with wrapper staging