mod fork functions