this version should be a string (derp)
updated popen3 usage (blocks) & cleaned up