use 'doc' if is present