removed in-progress bash version of this script