added file search and globals