Some things were using the global i and not a local i... this was not a problem. Added alerts when lightbar.draw() aborts due to no ANSI or no colour.