various fixes to make the function call example compilable