some config checking