v0.2.0 - use buffer to make better performance