add Administrative interface
fix a lot of bugs