rewrite to use gerber files