finish location independent script code