resources refactor module