using hash now instead of XML