updated to use auth with context