add writeline.
add cache support.