use an atom instead of an stm ref