first not tested version of genlib