handle 'function tokens'