use @spool and @spool_off