fix config checks