Updated code to parse the data. data must be in the form "protocol.ircode/"