a ugly fork of libofetion