added extract surface script