developed environment library, largely UNTESTED