prepare doctitle logic for use of new API