removed resource table and included scope in token instead