added input stream flush
all validation seems to work