(incomplete) support for different panel.vars in layers