add functions to detect xf