refactor module dependeicies