added code for circumventing pid/tachometer