better script call check