locked down requirements and moved index to env var