adds loopback to script