compile external script