you can remove this and use the SharedUtil outputBits instead
also remove the bitset requirement