refactor borgify to use a skeleton so its easy to add to and understand