create inst file from real data, optimize imports