add delayed_job and build logic