updated manual calls to init_portal_internal()