fix bugs and add method listsinceblock