merge portal implementation