update base.rb to allow paranoid context and deletion