add register etc to demo