added start, stop and setdc functions