collection of scripts used for Chelmicki and Duendar et al. 2014