fix ubuntu support and smoketest