add isBuffer and isStream