added support for spool