added basic serial support