added config for promises

added config for promises

pretty print

adjusted syntax