change to using spring rpc