add rpc and fix get current year bug