add some functions to roy

By.wind