basic structure completed, some incongruences with PYLong version to be
checked