need to take configurable max size