initial debug, fixed version extraction