cleanup of old functions (see bin/profile.py)