organize new programs and threads