added knowledge of if a fun is part of a class to fundefbean w/o keeping the self var in params