buggy but functional version

for some reason sent SMS counts as 3 (occasionally 4) instead of 1