digital i/o added, needs further testing