reorganised the file structrure to match requirement, got seg fault on 4 and 5 runtimes