actually use config vars in layout opening