prepare fork