small tweaks to .profile functions