portal factory - core