pid improvements