support validate declaration in static block
fix some bugs
update dependencies