clean instances, add formatting script