added pid autotuning