generate complete and correct resource classes