add workaround for 'invalid token ILLEGAL'