added key clash checking for command line args and env vars