added timeout to name server helper script