updated for MLX demo