add register stuff