fixing start script to use env vars