trim global variables to 31 characters with unique prefix & update TODO