added authentication to overlay stuff