hotfixing promise detection