display detection script