initial code to parse inputs and retrieve valid session ID from MFL