some fixes and cut_and_grep and added extract_my_xpinfo fucntion