updated pi scripts