started implementing demo detector xtag