get past the Promise callback handling bug