better scan loop. fixed play scan logging