renamed roster->portal and fixed sending headers to late