add some maintenance/cleanup functions