port hw1 to rust