fixed build script
network check
position checking added