bug fix: reading from input stream
enforcing resizing actions