History api improvements