implement a general nerv mechanism and also use it for door closing/opening