smart buffer, currently not so smart.