updated compile script