added write protect and passwording (beta)