fixes to the register bit in api and the jade.