removes some debugging helpers and unnecessary markup