fixed resource classes to add ids