adding environment setting in set functions

Signed-off-by: Joel Scoble <joel.scoble@outlook.com>