[hacks] cleaned up config validation