register handling on the fly