fix exfunctions