move config out, hollow output loop