log as soon as possible; fixed HTML markup and export page