extended remove and implemented resource remover