un-static'd setup_pes so I can hack it in gates (declaration)