allow creating processes from objects as well as constructor functions