adding registry stuff