added rpc functions for manipulating resources