handles typing of match data etc correctly