(hacky) speed improvements for repeat runs, added LICENSE