main/imake: move from testing