inspect config first