fix a few lone functions