don't save new codes until callbacks are made