create a way to register devices