better config file check, added hook for VariableDeclarators