add chain
use getenv
clean up comments
clean up lines
have range
use data dir, use cut