added rewind and fixed filePath bug