deletes stuff
also updates - basic rest functionality complete