add more depedency stuff.
add close method