joining main thread to ensure main() exists when thread dies/crashes. updated debug output to dump running config file location.