fork from http://git.savannah.gnu.org/cgit/bino.git