remove any invocations so that library now only has functions