add test examples back
use flexi-streams instead of hand-rolled version