diagnostic script