updated standalone script