add clone and join to proc.c