- this still messes up the output a bit, there's a tab too many before additional "if" clauses, not so easy to fix