added keepinventory with permission