complete yaf's basic structure