base initial resolving

cleanup
fixed resolving attribute type when attribute endwith Attribute