works with individual bytes but not chunks