make doctest synchronous to pass