refactor app module dependancies