move all config checking to start