refactored the fork process due to API change. now simpler