modify script for levy environment