fix static methods, + use in example, see #12