bugfix.

Memory reduce.
http protocol smartfy.
refactering