1) sys_search several bugs fixed
2) pattern search agent implemented