move fork maintance files setup into their own function