more precise timing
fixing html validation errors