compile script