adding support for urls and layers