added functionality to rest resources