adding searching function for fid, aid and eid.
get a working scan folder function