now parsing GatewayDevice xml with scala, instead of crap