replace file path for extensions