base scripts for cowpath