started to modify the server code to just cater to device registration right now