a small TMP library of mine