it always makes me sad to write xpcshell shell code =p