add child.js and fork logic