fixed a bug related to not providing callbacks and depending on promises