add some convenient methods on main thread.