implemented admin api