minor changes to make the thing run