added a new utils source and a references functioanlity for the controller
moved the entire logic so far in the controller src