removed all uses of promises; remove promise library since it's not longer needed