fix paths to functions