improvements to online portfolio enrolment script