adding main and buildTargetVal