added previous changes to gnublin.cpp/gnublin.h