removed promises
config handling sketch