refactored node, miner, actor into better structs