added XFragment, add some utils methods