use replace extension, take a config instead of hardcoding