check-sanity script