move config into its own package
change environmentString and environmentLen
add validator
add validate flag