support static scope
preparing for properties
fixed npe