implemented a number of admin end points