changed the way portal is activated