added ethernet code