update local filePath appropriately