refactor to remove utils module. Also Clean up router.
Cleaning up the mess that was sds exception handling