adding support for wms layers