afs: com_add() fixes and improvements.