change key file scope