use max_..._bytes like API spec dictates

fixes #8