doctype and cleanup