refactored hwbot prime structure