added microdata settings check and simplified captions logic