updated locals middleware