remove now unused set_generator and related code