detect prod/dev keys