added config for promises