switch copycat util to promises