restored compile script