refactor to onionoo "package", better promise err message handling