removed unnecessary shell calls