add support for memory
tuning some parameter
add some cc