implement some todos.

Signed-off-by: OleNet <olenet@126.com>