refactored code directories