debug key and possible crash fix