only send 'added' message if add was successful
changed 'print' commands to actual logging