- now works with simple layers and up to one layerset