added id_as_float flag and spin