some useful file search function