support limiting valid sizes