remove double config code