ian's dhcp code

hopefully that's all of it!