added support for option depth or head data