trying to fix onAuth