use libflgsgf