some changes

check connection cache
block unrelated functions of dynamic libraries.