adding replace and extracting profile
fix