added graph generation and parameterized objects/threads