work in progress
work-in-progress adapting repo to new script