several errors solved: correction of dispatch tables format, and attribute scoping