implement function descriptors

TODO: prefix function label with "."