added changes for dynamic reconfiguring of PI