update the ruler

The previous merge introduced a few bug in the file structure, it's now fixed