add fork functions