rough but somewhat functional
changed name from old repurposed script