removes dead code and refactors unit tests
consolidating validation logic
updates schema
fixes tests and validation
fixes tests and validation
fixed race condition with logging test and cleaned up shutdown logic