simplified startup callbacks
unneeded error func
simplify lookup if-statement
Merge pull request #95 from adrifelt/promises

Simplify startup callbacks