refactored spool_path into deployment variable