! why did I have that duplicated .. hummm
! restrict reset to just the portal page
! use typeof to be safe
! missing var