refactoring to more like nervous system