revert changes to parser and use the loop in discoverServices to set the required data