main script: added stubs for functions, thread debugging test