update with layers and key modifications