script to check few miscongurations