finished DN startup routine and refactored some core classes