optimize the dependancies.

Signed-off-by: Daogang Tang <daogangtang@gmail.com>