script for double build