fixed paths and debugged get_pins.sh