make research of rule more efficient
refactor a bit
remove tern port file
make perf test pass on my machine