minor refactoring and template for parse_LC_THREAD