created search table file, added some mode calendar functions