switching layers, work in progress
merged, is not fully functional yet