add port manipulation routine to expander tutorial routines