much refactoring, cleaned up code, added nuke detection and response