a clone for closure-library