add ais sharedfuncs file