rewrote the clockwork file