add address middleware