compile output script