fixes and implementation of provision in dhcp