writing html streams