allow to pass exit-value
parse PT_BEGIN->PT_END as a local block to fix interference of multiple PT_THREADs in same file