functional class definitions were broken. now fixed.