move match/reply into blocklist
simplify control flow
this is just not necessary when fflush() is always done
use proper constant for filename length