don't use C static helper methods - not portable really