move role mangement code to modules folder