handle key errors