update 'replace' so as to correct paths for WP1 demo