fix up main crashes when the actual key isn't provided