updating PF_Agent code