add kernel and Networkdelegate class