change default logout to id
be more strict/robust about environment variables
v0.2.0