fix for controller generator and adding repository generator