minor changes to foafUtils.js