add housekeeping function