improved secret key, set environ variables