add windows environment variable parsing support
add basic api key validation