apply overlay vars correctly