modernize celeryutils