add size limited input stream