added support for sublayer specification from the api