basic maxBytes check (fixes #3)