add error checking to subprocess
readd binaries after purge