added request max size check