add spwd structure