add spec
Merge remote-tracking branch 'origin/detect_env' into detect_env