rockpaint: change the way to handle tools to improve readability.