use isbuffer
Merge pull request #7 from juliangruber/isbuffer

use isbuffer