parse function defintions