main controllers for the model

+ some minor changes