added XHP translation framework