first draft for cross compilation