uninvert betim's garbage code