system calls tidy up syntax
refactored build module