added compression script, more tet functions