using spawn instead of delayed_job