added fork feature