merge source code from gubos.