adding generic classes to controllers and services