emit selected layers in correct order