some changes to xCreate