changed XML to hash in profiles