added the spec and fix the current priviledge issue