removed debugging code that caught all function calls, not just external ones