refactored to 2 DAOS key and device changed many things from callback to promises