added populate in devices. minor command issues