refine install/authentication flow