basic working rest api for updates. will need some love before being allowed live