separate device script