local statics done but not tested