Competing version to original draft

grouped some attributes,rplaces runtime attribute with scope attribute
introduced patterns for certain attributes