more changes to setup_pi