rewrite to work around annoying literal limitation in sphinx