fixing the expiring session / update problem