library refactoring, durandal intialised