move this first spinner stuff into some shared init function.