updating backend handling of layers