cleanup formatting
add define to ti.current support, fixes #208