clean up; allow overriding fork